# coding:utf-8
from typing import Tuple

tup1 = ("a", "b", "c")
tup2 = (1, 2, 3)
tup3 = 1, 2, 3, 4
tup4 = ()
tup5 = (1,)  # type: Tuple[int]
tup6 = tup3 + tup5
print(tup6)
print(tup6[2:8])

# 元组中的元素值不允许修改，但可以对元组进行重新连接组合
del tup4

print(len(tup6))

print(tup5)
tup5 = tup5 * 4
print(tup5)

print(3 in tup3)

for i in tup1:
    print(i)

tup7 = tuple([1, 2, 3, 4])
print(tup7)

